package homework_04;

public class home_06 {
    public static void main(String[] args) {
        int[] nums={18,25,7,36,13,2,89,63};
        int max=0,i,index=0;
        for (i=0;i<nums.length;i++){
            if (max<nums[i]){
                max=nums[i];
                index=i;
            }
        }
        System.out.println("最大的数是"+max+" 下标是"+index);
    }
}
